Parameters
- keyword
- Attribute tag to add
- Value
- Attribute value as byte array
DicomImage image = new DicomImage(); string patientName = "Doe^John"; byte[] patientNameBytes = Encoding.ASCII.GetBytes(patientName); image.AddByReference(Keyword.PatientName, patientNameBytes); var patientName = image.DataSet[Keyword.PatientName].Value.ToString(); // Doe^John